package com.itheima.domain;

import java.io.Serializable;


@Deprecated
public class Student extends Object implements Serializable,Comparable {//Student.class
    private int age;
    private String name;//String.class
    public String address;


    private Student() {
    }

    public Student(int age, String name) {
        this.age = age;
        this.name = name;
    }

    private Student(String name) {
        this.name = name;
    }

    private void sing(){
        System.out.println("我是私有方法 嘿嘿嘿 ,你调不到哦");
    }

    public void show(){
        System.out.println("我是一根牙签");
    }
    public void dance(String song){
        System.out.println("跟着"+song+"来一段");
    }
    public int rap(){
        return 888;
    }



    @Override
    public String toString() {
        System.out.println("啊呀,我被别人调用了");
        return "Student{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                '}';
    }

    @Override
    public int compareTo(Object o) {
        return 0;
    }
}
